package com.xiaobai.entity;

/**
 * @author wangtw
 * @ClassName Employee
 * @description: 员工
 * @date 2023/1/1918:39
 */
public class Employee {

    /**
     * 工资
     */
    private Integer salary;

    /**
     * 姓名
     */
    private String realName;

    public Employee(Integer salary, String realName) {
        this.salary = salary;
        this.realName = realName;
    }

    public Integer getSalary() {
        return 1000 + salary;
    }

    public String getRealName() {
        return realName;
    }
}
